<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!--进度条的css-->
    <link rel="stylesheet" href="lib/nprogress/nprogress.css">
    <!--bootstrap-->
    <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
    <!--表单验证插件的css-->
    <link rel="stylesheet" href="lib/bootstrap-validator/css/bootstrapValidator.min.css">
    <!--自已写的css-->
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/user.css">

    <script src="lib/jquery/jquery.min.js"></script>
    <!--模板引擎-->
    <script src="lib/artTemplate/template-web.js"></script>
    <!--bootstrap-->
    <script src="lib/bootstrap/js/bootstrap.js"></script>
    <!--分页器-->
    <script src="lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <!--表单验证插件-->
    <script src="lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
    <!--图表插件-->
    <script src="lib/echarts/echarts.min.js"></script>
    <!--上传文件的插件-->
    <script src="lib/jquery-fileupload/jquery.ui.widget.js"></script>
    <script src="lib/jquery-fileupload/jquery.fileupload.js"></script>
    <script src="lib/jquery-fileupload/jquery.iframe-transport.js"></script>
    <!--进度条插件-->
    <script src="lib/nprogress/nprogress.js"></script>

</head>

<body>
    <main>
        <div class="left">
            <div class="tittle">黑马12期</div>
            <div class="icon">
                <img src="./images/default.png" alt="">
                <p>超级管理员</p>
            </div>
            <ul class="list">
                <li>
                    <a class="active" href="user.html">
                        <span class="glyphicon glyphicon-user"></span>用户管理</a>
                </li>
                <li>
                    <a class="slidelist" href="javascript:viod()">
                        <span class="glyphicon glyphicon-list"></span>分类管理</a>
                    <div class="sublist">
                        <a href="javascript:viod()">一级分类</a>
                        <a href="subcategory.html">二级分类</a>
                    </div>
                </li>
                <li>
                    <a href="javascript:viod()">
                        <span class="glyphicon glyphicon-tags"></span>商品管理</a>
                </li>
            </ul>
        </div>
        <div class="right">
            <div class="top">
                <span class="glyphicon glyphicon-align-justify"></span>
                <span class="glyphicon glyphicon-log-out"></span>
            </div>
            <ol class="breadcrumb">
                <li>
                    <a href="#">管理系统</a>
                </li>
                <li class="active">用户管理</li>
            </ol>
            <div class="content container-fluid">
                <table class="table table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>用户名</th>
                            <th>手机号</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1</td>
                            <td>itcast</td>
                            <td>15102324243</td>
                            <td>正常</td>
                            <td>
                                <button class="btn btn-danger btn-sm">禁用</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!-- 分页插件 -->
            <div class="text-right">
                <ul id="paginator"></ul>
            </div>
        </div>
    </main>

    <script type="text/html" id="usertable">
        {{each rows}}
        <tr>
            <td>{{(page-1)*size+$index+1}}</td>
            <td>{{$value.username}}</td>
            <td>{{$value.mobile}}</td>
            <td>
                {{if $value.isDelete == 1}}正常{{/if}} {{if $value.isDelete == 0}}删除{{/if}}
            </td>
            <td>
                {{if $value.isDelete == 1}}
                <button data-id="{{$value.id}}" class="btn btn-danger btn-sm">禁用</button>
                {{/if}} {{if $value.isDelete == 0}}
                <button data-id="{{$value.id}}" class="btn btn-success btn-sm">启用</button>
                {{/if}}
            </td>
        </tr>
        {{/each}}
    </script>

    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog">
        <div class="modal-dialog  modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">温馨提示</h4>
                </div>
                <div class="modal-body">
                    <span class="glyphicon glyphicon-info-sign"></span>
                    <span>您确定要退出后台管理系统吗？</span>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" id="dologout" class="btn btn-primary">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>


    <!--自已写的js-->
    <script src="js/common.js"></script>
    <script src="js/user.js"></script>
</body>

</html>